//要求输入一个大于等于6的偶数,如果不是,重新输入;
package ZUOYE0422;

import java.util.Scanner;

public class zuoye {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入一个数：");
		while (true) {
			int num = in.nextInt();
			if ((num >= 6) && (num % 2 == 0)) {
				System.out.println("输入完成");
				break;
			}
			System.out.print("请重新输入：");
		}
	}

}
